export const config = {
  groups: [
    //   {
    //   items: ['undo', 'redo']
    // }, {
    //   items: ['formatPainter']
    // }, 
    {
      items: ["fontFamily", "fontSize"]
    },
    {
      items: ["backgroundColor", "fontColor"]
    },
    {
      items: ["fontStyleBlod", "fontStyleItalic", "fontStyleUnderline"]
    }, {
      items: ["textAlign"]
    },
    // {
    //   items: ["indent"]
    // },
    {
      items: ["verticalAlign"]
    }, {
      // "insertImg"
      items: ['insertQr', 'insertBr']
    },
    //  {
    //   items: ["pageBreak"]
    // },
    {
      items: ["border"]
    }, {
      items: ["merge"]
    },
    // {
    //   items: ["cellHeight"]
    // },
    {
      items: ["gridLine"]
    }, {
      items: ["paperSetting"]
    }],
  toolbarItem: {
    undo: {
      icon: "undo",
      action: "undo",
      active: !1,
      enable: !1,
      tips: "撤销"
    },
    redo: {
      icon: "redo",
      action: "redo",
      active: !1,
      enable: !1,
      tips: "重做"
    },
    formatPainter: {
      isSwitch: !0,
      icon: "format-brush",
      action: "formatPainterCopy",
      active: !1,
      enable: !0,
      tips: "格式刷"
    },
    fontFamily: {
      icon: "none",
      type: "Select",
      action: "setFontFamily",
      activeValue: "SimSun",
      defaultValue: "SimSun",
      active: !1,
      enable: !0,
      tips: "字体",
      datasource: [{
        text: "宋体",
        value: "SimSun"
      }, {
        text: "楷体",
        value: "KaiTi"
      }, {
        text: "黑体",
        value: "SimHei"
      }, {
        text: "微软雅黑",
        value: "MicrosoftYaHei"
      }, {
        text: '草书',
        value: 'cursive'
      }],
      itemWidth: "170px",
      cssStyle: "fontFamily"
    },
    fontSize: {
      icon: "none",
      type: "Select",
      action: "setFontSize",
      activeValue: 11,
      defaultValue: 11,
      active: !1,
      enable: !0,
      tips: "字号",
      datasource: [{
        text: 8,
        value: 8
      }, {
        text: 9,
        value: 9
      }, {
        text: 10,
        value: 10
      }, {
        text: 11,
        value: 11
      }, {
        text: 12,
        value: 12
      }, {
        text: 13,
        value: 13
      }, {
        text: 14,
        value: 14
      }, {
        text: 15,
        value: 15
      }, {
        text: 16,
        value: 16
      }, {
        text: 18,
        value: 18
      }, {
        text: 20,
        value: 20
      }, {
        text: 22,
        value: 22
      }, {
        text: 24,
        value: 24
      }, {
        text: 26,
        value: 26
      }, {
        text: 28,
        value: 28
      }, {
        text: 36,
        value: 36
      }, {
        text: 48,
        value: 48
      }, {
        text: 72,
        value: 72
      }],
      itemWidth: "100px",
      cssStyle: "fontSize"
    },
    backgroundColor: {
      icon: 'background-color',
      type: 'ColorSetting',
      action: 'setBackgroundColor',
      active: !1,
      enable: !0,
      tips: '填充颜色'
    },
    fontColor: {
      icon: 'font-size-two',
      type: 'ColorSetting',
      action: 'setFontColor',
      active: !1,
      enable: !0,
      tips: "字体颜色"
    },
    fontStyleBlod: {
      icon: "text-bold",
      isSwitch: !0,
      action: "setFontStyle",
      data: {
        type: "blod"
      },
      active: !1,
      enable: !0,
      tips: "加粗",
      cssStyle: "fontWeight"
    },
    fontStyleItalic: {
      icon: "text-italic",
      isSwitch: !0,
      action: "setFontStyle",
      data: {
        type: "italic"
      },
      active: !1,
      enable: !0,
      tips: "斜体",
      cssStyle: "fontStyle"
    },
    fontStyleUnderline: {
      icon: "text-underline",
      isSwitch: !0,
      action: "setFontStyle",
      data: {
        type: "underline"
      },
      active: !1,
      enable: !0,
      tips: "下划线",
      cssStyle: "textDecoration"
    },
    textAlign: {
      action: "setAlign",
      items: [{
        icon: "align-text-left",
        data: {
          type: "text",
          value: "left"
        },
        active: !1,
        enable: !0,
        tips: "左对齐"
      }, {
        icon: "align-text-center",
        data: {
          type: "text",
          value: "center"
        },
        active: !1,
        enable: !0,
        tips: "居中对齐"
      }, {
        icon: "align-text-right",
        data: {
          type: "text",
          value: "right"
        },
        active: !1,
        enable: !0,
        tips: "右对齐"
      }],
      cssStyle: "textAlign",
      activeValue: "left"
    },
    indent: {
      isMutex: !0,
      action: "setIndent",
      type: "MutexItem",
      items: [{
        icon: "indent",
        data: {
          type: "text",
          value: "indent"
        },
        active: !1,
        enable: !0,
        tips: "增加缩进量"
      }, {
        icon: "unindent",
        data: {
          type: "text",
          value: "unindent"
        },
        active: !1,
        enable: !0,
        tips: "减少缩进量"
      }],
      cssStyle: "indent"
    },
    verticalAlign: {
      isMutex: !0,
      type: "MutexItem",
      action: "setAlign",
      items: [{
        icon: "align-top",
        data: {
          type: "vertical",
          value: "top"
        },
        active: !1,
        enable: !0,
        tips: "顶部对齐"
      }, {
        icon: "align-vertically",
        data: {
          type: "vertical",
          value: "middle"
        },
        active: !1,
        enable: !0,
        tips: "垂直居中"
      }, {
        icon: "align-bottom",
        data: {
          type: "vertical",
          value: "bottom"
        },
        active: !1,
        enable: !0,
        tips: "底部对齐"
      }],
      cssStyle: "verticalAlign",
      activeValue: "middle"
    },
    insertImg: {
      icon: "none",
      action: "insertImg",
      type: "ImageUploadItem",
      active: !1,
      enable: !0,
      tips: "插入图片"
    },
    insertQr: {
      icon: "two-dimensional-code",
      action: "insertQr",
      active: !1,
      enable: !0,
      tips: "插入二维码"
    },
    insertBr: {
      icon: "bar-code",
      action: "insertBr",
      active: !1,
      enable: !0,
      tips: "插入条码"
    },
    pageBreak: {
      icon: "page-break",
      type: "PageBreakSetting",
      action: "breakPage",
      active: !1,
      enable: !0,
      tips: "分页符"
    },
    border: {
      icon: "pic",  //不使用
      type: "BorderSetting",
      action: "setBorder",
      active: !1,
      enable: !0,
      tips: "边框"
    },
    merge: {
      icon: "merge-cells",
      action: "mergeOrUnmerge",
      isSwitch: !0,
      active: !1,
      enable: !0,
      tips: "合并",
      cssStyle: "merge"
    },
    cellHeight: {
      icon: "cellheight",
      type: "CellHeight",
      action: "setCellHeight",
      active: !1,
      enable: !0,
      tips: "单元格高度设置",
      activeValue: "auto"
    },
    gridLine: {
      icon: "none",
      type: "gridLine",
      isSwitch: !0,
      action: "setGridLines",
      active: !0,
      enable: !0,
      tips: "网格线"
    },
    paperSetting: {
      icon: "printer",
      type: "PaperSetting",
      action: "setPaperSetting",
      active: !1,
      enable: !0,
      tips: "纸张设置"
    }
  },
  toolbarDisable: false
}
